<?php
// +----------------------------------------------------------------------
// | zhanshop-marketing / SnsToken.php    [ 2024/12/23 14:26 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2024 zhangqiquan All rights reserved.
// +----------------------------------------------------------------------
// | Author: zhangqiquan <768617998@qq.com>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\crontab;

use app\task\SnsTokenTask;
use zhanshop\App;
use zhanshop\Crontab;

class SnsTokenCrotab extends Crontab
{
    public function configure()
    {
        $this->setTitle("第三方token维护")->interval(60);
    }

    public function execute()
    {
        App::task(SnsTokenTask::class)->generate();
    }
}